<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../../assets/docs.css" rel="stylesheet" type="text/css" media="screen" />
<title>MooTools 1.3 参考文档 - Locale/Date</title>
</head>

<body>
  <div class="doc">
    <div class="methods">
      <h4 class="menu-item"><a href="#Date">Date</a></h4>
      <div class="menu-item"><a href="#"></a></div>
      <div class="menu-item"><a href="#"></a></div>
      <div class="menu-item"><a href="#"></a></div>
    </div>
    <div class="l-border r-border span-15 content">
      <h1 id="Date"><a href="#Date">Locale: Date</a></h1>
      <p class="description">Contains the messages for <a href="../../../docs/more/Types/Date.html">Date</a> and <a href="../../../docs/more/Types/Date.Extras.html">Date.Extras</a>.</p>
      <h2><a href="#">Usage</a></h2>
      <p class="description">Simply change the language property to the locale code, for example <em>en-US</em>.</p>
      <pre class="javascript">Locale.<span class="kw2">use</span><span class="br0">(</span><span class="st0">'en-US'</span><span class="br0">)</span>;
</pre>
      <h3>See also:</h3>
      <ul>
        <li><a href="../../../docs/more/Types/Date.html">Date</a></li>
        <li><a href="../../../docs/more/Types/Date.Extras.html">Date.Extras</a></li>
        <li><a href="../../../docs/more/Locale/Locale.html">Locale</a></li>
      </ul>
      <h2><a href="#">Available Languages</a></h2>
      <table class="description">
        <tr>
          <th>Language</th>
          <th>Locale Code</th>
          <th>Authors</th>
        </tr>
        <tr>
          <td>Arabic</td>
          <td>ar</td>
          <td>Chafik Barbar</td>
        </tr>
        <tr>
          <td>Catalan</td>
          <td>ca-CA</td>
          <td>Alfons Sanchez</td>
        </tr>
        <tr>
          <td>Chinese (simplified)</td>
          <td>zh-CHS</td>
          <td>YMind Chan</td>
        </tr>
        <tr>
          <td>Chinese (traditional)</td>
          <td>zh-CHT</td>
          <td>YMind Chan</td>
        </tr>
        <tr>
          <td>Czech</td>
          <td>cs-CZ</td>
          <td>Jan &#268;ern&yacute;</td>
        </tr>
        <tr>
          <td>Danish</td>
          <td>da-DK</td>
          <td>Martin Overgaard</td>
        </tr>
        <tr>
          <td>Dutch</td>
          <td>nl-NL</td>
          <td>Lennart Pilon</td>
        </tr>
        <tr>
          <td>English (GB)</td>
          <td>en-GB</td>
          <td>Aaron Newton</td>
        </tr>
        <tr>
          <td>English (US)</td>
          <td>en-US</td>
          <td>Aaron Newton</td>
        </tr>
        <tr>
          <td>Estonian</td>
          <td>et-EE</td>
          <td>Kevin Valdek</td>
        </tr>
        <tr>
          <td>Finnish</td>
          <td>fi-FI</td>
          <td>ksel</td>
        </tr>
        <tr>
          <td>French</td>
          <td>fr-FR</td>
          <td>Nicolas Sorosac</td>
        </tr>
        <tr>
          <td>German (Switzerland)</td>
          <td>de-CH</td>
          <td>Michael van der Weg</td>
        </tr>
        <tr>
          <td>German</td>
          <td>de-DE</td>
          <td>Frank Rossi, Ulrich Petri</td>
        </tr>
        <tr>
          <td>Hungarian</td>
          <td>hu-HU</td>
          <td>Zsolt Szeghe&#337;</td>
        </tr>
        <tr>
          <td>Italian</td>
          <td>it-IT</td>
          <td>Andrea Novero, Valerio Proietti</td>
        </tr>
        <tr>
          <td>Japanese</td>
          <td>ja-JP</td>
          <td>Noritaka Horio</td>
        </tr>
        <tr>
          <td>Norwegian</td>
          <td>no-NO</td>
          <td>Espen 'Rexxars' Hovlandsdal</td>
        </tr>
        <tr>
          <td>Persian (Farsi)</td>
          <td>fa</td>
          <td>Amir Hossein Hodjaty Pour</td>
        </tr>
        <tr>
          <td>Polish</td>
          <td>pl-PL</td>
          <td>Oskar Krawczyk</td>
        </tr>
        <tr>
          <td>Portuguese (Brazil)</td>
          <td>pt-BR</td>
          <td>F&aacute;bio Miranda Costa</td>
        </tr>
        <tr>
          <td>Portuguese</td>
          <td>pt-PT</td>
          <td>F&aacute;bio Miranda Costa</td>
        </tr>
        <tr>
          <td>Russian</td>
          <td>ru-RU-unicode</td>
          <td>Evstigneev Pavel</td>
        </tr>
        <tr>
          <td>Slovenian</td>
          <td>si-SI</td>
          <td>Radovan Lozej</td>
        </tr>
        <tr>
          <td>Spanish (Argentina)</td>
          <td>es-AR</td>
          <td>&Atilde;lfons Sanchez, Diego Massanti</td>
        </tr>
        <tr>
          <td>Spanish</td>
          <td>es-ES</td>
          <td>&Atilde;lfons Sanchez</td>
        </tr>
        <tr>
          <td>Swedish</td>
          <td>sv-SE</td>
          <td>Martin Lundgren</td>
        </tr>
        <tr>
          <td>Ukrainian</td>
          <td>uk-UA</td>
          <td>Slik</td>
        </tr>
      </table>
      <h2><a href="#">Keys/Values</a></h2>
      <h3 class="description">Used by <a href="../../../docs/more/Types/Date.html">Date</a> </h3>
      <ul>
        <li>months - (<em>array</em>) An array of month names for the language (January, February, etc)</li>
        <li>days - (<em>array</em>) An array of names for the days of the week (Monday, Tuesday, etc)</li>
        <li>dateOrder - (<em>array</em>) An array specifying the order for date expression followed by a default delimiter (usually /). US english is <em>['month', 'date', 'year', '/']</em>, for instance.</li>
        <li>AM - (<em>string</em>) the string that denotes morning in 12 hour time</li>
        <li>PM - (<em>string</em>) the string that denotes evening in 12 hour time</li>
        <li>ordinal - (<em>function</em>) A method that returns the proper ordinal ("th", "st", "nd", etc) given a day of the month.</li>
      </ul>
      <h3>Used by <a href="../../../docs/more/Types/Date.Extras.html">Date.Extras</a> </h3>
      <ul>
        <li>lessThanMinuteAgo - (<em>string</em>) 'less than a minute ago'</li>
        <li>minuteAgo - (<em>string</em>) 'about a minute ago'</li>
        <li>minutesAgo - (<em>string</em>) '{delta} minutes ago' where {delta} is the number of minutes</li>
        <li>hourAgo - (<em>string</em>) 'about an hour ago'</li>
        <li>hoursAgo - (<em>string</em>) 'about {delta} hours ago' where {delta} is the number of hours</li>
        <li>dayAgo - (<em>string</em>) '1 day ago'</li>
        <li>daysAgo - (<em>string</em>) '{delta} days ago' where {delta} is the number of days</li>
        <li>weekAgo - (<em>string</em>) '1 week ago'</li>
        <li>weeksAgo - (<em>string</em>) '{delta} weeks ago' where {delta} is the number of weeks</li>
        <li>monthAgo - (<em>string</em>) '1 month ago'</li>
        <li>monthsAgo - (<em>string</em>) '{delta} months ago' where {delta} is the number of months</li>
        <li>yearAgo - (<em>string</em>) '1 year ago'</li>
        <li>yearsAgo - (<em>string</em>) '{delta} years ago' where {delta} is the number of years</li>
        <li>lessThanMinuteUntil - (<em>string</em>) 'less than a minute from now'</li>
        <li>minuteUntil - (<em>string</em>) 'about a minute from now'</li>
        <li>minutesUntil - (<em>string</em>) '{delta} minutes from now' where {delta} is the number of minutes</li>
        <li>hourUntil - (<em>string</em>) 'about an hour from now'</li>
        <li>hoursUntil - (<em>string</em>) 'about {delta} hours from now' where {delta} is the number of hours</li>
        <li>dayUntil - (<em>string</em>) '1 day from now'</li>
        <li>daysUntil - (<em>string</em>) '{delta} days from now' where {delta} is the number of days</li>
        <li>weekUntil - (<em>string</em>) '1 week from now'</li>
        <li>weeksUntil - (<em>string</em>) '{delta} weeks from now' where {delta} is the number of weeks</li>
        <li>monthUntil - (<em>string</em>) '1 month from now'</li>
        <li>monthsUntil - (<em>string</em>) '{delta} months from now' where {delta} is the number of months</li>
        <li>yearUntil - (<em>string</em>) '1 year from now'</li>
        <li>yearsUntil - (<em>string</em>) '{delta} years from now' where {delta} is the number of years</li>
      </ul>
    </div>
  </div>
<script type="text/javascript" src="../../../assets/mootools-core-1.3.js"></script>
<script type="text/javascript" src="../../../assets/mootools-more-smoothscroll.js"></script>
<script type="text/javascript" src="../../../assets/doc-assist.js"></script>
</body>
</html>
